package com.sunreal.paygateway.sys.util.result;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.sunreal.paygateway.sys.exception.BusinessException;
import com.sunreal.paygateway.sys.exception.WebErrCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class WebResult extends RetResult {
    private String resKey;

    public static WebResult retSuccess(String msg, String resKey, Object data) {
        WebResult result = new WebResult();
        result.isOK();
        result.setMsg(msg);
        result.setResKey(resKey);
        result.setData(data);
        return result;
    }
}
